package com.example.yiqiuser.controller;

import com.example.yiqiuser.service.OperLogService;
import com.example.yiqiuser.util.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author ：周文达
 * @date ：Created in 2023/4/12 14:13
 * @description：统计图
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("statitics")
public class StatiticsController extends BaseController {
    @Resource
    private OperLogService operLogService;

    @GetMapping("showEchartsByOperLog")
    public Result showEchartsByOperLog(String monthDay) {
        return success(operLogService.showEchartsByOperLog(monthDay));
    }

}